package rs.pnv.merchant;

import java.net.MalformedURLException;

import rs.pnv.util.WebServiceClient;
import rs.pnv.util.WebServiceClient.WebServiceType;

public class MerchantClient {

	public static void main(String[] args) {
		try {

			Merchant merchant = WebServiceClient.createWebService(WebServiceType.MERCHANT, Merchant.class);
			String response = merchant.processPaymentResponse(null);

			System.out.println(response);

		} catch (MalformedURLException e) {
			e.printStackTrace();
		} catch (Exception e) {
			System.out.println("INVALID RESPONSE");
		}

	}

}
